<!DOCTYPE html>

<html>
<head>
  <title>settings.coffee</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
  <link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
  <div id="container">
    <div id="background"></div>
    
      <ul id="jump_to">
        <li>
          <a class="large" href="javascript:void(0);">Jump To &hellip;</a>
          <a class="small" href="javascript:void(0);">+</a>
          <div id="jump_wrapper">
          <div id="jump_page">
            
              
              <a class="source" href="configure.html">
                configure.coffee
              </a>
            
              
              <a class="source" href="dataParser.html">
                dataParser.coffee
              </a>
            
              
              <a class="source" href="database.html">
                database.coffee
              </a>
            
              
              <a class="source" href="logger.html">
                logger.coffee
              </a>
            
              
              <a class="source" href="mail.html">
                mail.coffee
              </a>
            
              
              <a class="source" href="messages.html">
                messages.coffee
              </a>
            
              
              <a class="source" href="routes.html">
                routes.coffee
              </a>
            
              
              <a class="source" href="settings.html">
                settings.coffee
              </a>
            
              
              <a class="source" href="settings.default.html">
                settings.default.coffee
              </a>
            
              
              <a class="source" href="twitter.html">
                twitter.coffee
              </a>
            
          </div>
        </li>
      </ul>
    
    <ul class="sections">
        
          <li id="title">
              <div class="annotation">
                  <h1>settings.coffee</h1>
              </div>
          </li>
        
        
        
        <li id="section-1">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-1">&#182;</a>
              </div>
              <h2>SERVER SETTINGS</h2>

            </div>
            
        </li>
        
        
        <li id="section-2">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-2">&#182;</a>
              </div>
              <p>Has all server side settings for the app.</p>

            </div>
            
            <div class="content"><div class='highlight'><pre><span class="class"><span class="keyword">class</span> <span class="title">Settings</span></span></pre></div></div>
            
        </li>
        
        
        <li id="section-3">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-3">&#182;</a>
              </div>
              <h2>GENERAL</h2>

            </div>
            
        </li>
        
        
        <li id="section-4">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-4">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    General:
        debug: <span class="literal">true</span></pre></div></div>
            
        </li>
        
        
        <li id="section-5">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-5">&#182;</a>
              </div>
              <h2>WEB</h2>

            </div>
            
        </li>
        
        
        <li id="section-6">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-6">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    Web:
        sessionSecret: <span class="string">"JuremaNASalturas2"</span>
        cookieSecret: <span class="string">"RacobaseDOPadraoGG"</span></pre></div></div>
            
        </li>
        
        
        <li id="section-7">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-7">&#182;</a>
              </div>
              <h2>CONNECT ASSETS</h2>

            </div>
            
        </li>
        
        
        <li id="section-8">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-8">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    ConnectAssets:
        minifyBuilds: <span class="literal">false</span></pre></div></div>
            
        </li>
        
        
        <li id="section-9">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-9">&#182;</a>
              </div>
              <h2>ERROR HANDLING</h2>

            </div>
            
        </li>
        
        
        <li id="section-10">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-10">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    ErrorHandling:
        dumpExceptions: <span class="literal">false</span>
        showStack: <span class="literal">false</span></pre></div></div>
            
        </li>
        
        
        <li id="section-11">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-11">&#182;</a>
              </div>
              <h2>DATABASE</h2>

            </div>
            
        </li>
        
        
        <li id="section-12">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-12">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    Database:
        connString: <span class="string">"mongodb://counter:dba01RpqDBA!@ds059917.mongolab.com:59917/countingto"</span>
        connString2: <span class="string">"mongodb://counter:dba01RpqDBA!@dharma.mongohq.com:10033/countingto"</span></pre></div></div>
            
        </li>
        
        
        <li id="section-13">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-13">&#182;</a>
              </div>
              <h2>EMAIL</h2>

            </div>
            
        </li>
        
        
        <li id="section-14">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-14">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    Email:
        from: <span class="string">"noreply@counting.to"</span>
        smtpHost: <span class="string">"smtp.mandrillapp.com"</span>
        smtpPort: <span class="number">587</span>
        smtpUser: <span class="string">"devv@devv.com"</span>
        smtpPassword: <span class="string">"w4zxDRUS1HUbyK4SQtxfeg"</span></pre></div></div>
            
        </li>
        
        
        <li id="section-15">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-15">&#182;</a>
              </div>
              <h2>LOGGING</h2>

            </div>
            
        </li>
        
        
        <li id="section-16">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-16">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    Log:
        service: <span class="string">"logentries"</span>
        Logentries:
            token: <span class="string">"f8a4a494-75c1-4dae-9d23-19399c03cb9d"</span>
        Loggly:
            token: <span class="string">"2dc92b19-1865-419b-8818-390b8c0dc0c9"</span></pre></div></div>
            
        </li>
        
        
        <li id="section-17">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-17">&#182;</a>
              </div>
              <h2>TWITTER</h2>

            </div>
            
        </li>
        
        
        <li id="section-18">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-18">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>    Twitter:
        consumerKey: <span class="string">"aSM1My5Ya8eW2tFGZ2Cr4g"</span>
        consumerSecret: <span class="string">"fSrN6Ujyu2dqy6QyR7kosCv1O9hS5Ulp683hh47s"</span>
        accessToken: <span class="string">"1228424408-qWWPjsHWuGUqkFrhNz25guGtRAVx2zUKYh0un1h"</span>
        accessSecret: <span class="string">"h8nYbwjMxhzjiomyeT4yVtkhSvqG9295klZc94sxEM"</span></pre></div></div>
            
        </li>
        
        
        <li id="section-19">
            <div class="annotation">
              
              <div class="pilwrap for-h2">
                <a class="pilcrow" href="#section-19">&#182;</a>
              </div>
              <h2>Singleton implementation</h2>

            </div>
            
        </li>
        
        
        <li id="section-20">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-20">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>Settings.<span class="function"><span class="title">getInstance</span></span> = -&gt;
    <span class="keyword">if</span> <span class="keyword">not</span> <span class="property">@instance</span>?
        <span class="function"><span class="title">xtend</span></span> = (source, target) -&gt;
            <span class="keyword">for</span> prop, value <span class="keyword">of</span> source
                <span class="keyword">if</span> value?.constructor <span class="keyword">is</span> Object
                    target[prop] = {} <span class="keyword">if</span> <span class="keyword">not</span> target[prop]?
                    xtend source[prop], target[prop]
                <span class="keyword">else</span>
                    target[prop] = source[prop] <span class="keyword">if</span> <span class="keyword">not</span> target[prop]?

        <span class="property">@instance</span> = <span class="keyword">new</span> Settings()
        settingsDefault = require <span class="string">"./settings.default.coffee"</span>
        xtend settingsDefault, <span class="property">@instance</span>

    <span class="keyword">return</span> <span class="property">@instance</span>

module.exports = exports = Settings.getInstance()</pre></div></div>
            
        </li>
        
    </ul>
  </div>
</body>
</html>
